package com.sgcc.pda.util;


/**
 * Created by Beckham on 2018/2/3.
 */

@SuppressWarnings("ALL")
public class PlatConstant {

    public interface ICommon {
        // 极速版ContentProvider的Uri
        String JUDGE_SPEED = "content://com.sgcc.pda.mdrh.common.sharepreference.connect/";
        /**
         * 判断标志
         * null (普通版本)
         * "1" 微应用极速版
         * "2" 微应用极速版的北京GIS分支
         * "3" 微应用极速版的营销现场作业分支
         */
        String JUDGE_RESULT = "1";
        String JUDGE_GIS_TYPE = "2";
        String JUDGE_SAFE_TYPE = "3";

        //背夹相关
        public static final int BACKCLIP_TIME_OUT_AUTO_CLOSE = 60;//不交互背夹自动关闭的时间，单位min
        public static final String SYSTEM_EXIT_RESTART_ACTION = "com.sgcc.pda.SystemExitReceiver";//整个微应用管理平台推出重启的广播


    }

    public interface IWeb {
        public String REQ_HTTP = "commFront.do";//methodName
        public String REQ_HTTP_FILES = "uploadFiles.do";//methodName上传
        public String REQ_HTTP_FILE_UP = "reqHttpFileUp.do";//methodName上传
        public String REQ_HTTP_FILE_DOWN = "reqHttpFileDown.do";//methodName下载
        public String UPFILESERVER = "upfileserver";//serverName
        public String SERVER_NAME = "SERVER_NAME";
        public String REQUEST_PARM = "REQUEST_PARM";
        String PACKAGE_NAME = "com.sgcc.pda.mdrh";
        public String UID = "UID";
        public String MAC = "MAC";
        String CLASS_NAME = "com.sgcc.pda.mdrh.ui.activity.WelcomeActivity";
        String BROADCAST_PERMISSION_DISC =
                "com.sgcc.pda.permissions.COMM_BROADCAST";

    }

    //主功能码mainCode
    public interface IWebCmd {
        String WEB = "web";//网络请求
        String BASIC = "basic";//掌机基础服务
        String HARDWARE = "hardware";//硬件服务
        String GIS = "gis";//硬件服务
        String BUSINESS = "business";//业务服务
        String UTIL = "util";//工具类服务
        String SAFE = "safe";//安全管控服务
    }

    public interface IWebState {
        int HTTP_RESPONSE_CODE_SUCCESS = 1;//访问成功
        int HTTP_RESPONSE_CODE_FAIL = 0;//访问失败
        int HTTP_RESPONSE_CODE_NO_NETWORK = -2;//没有网络
        int HTTP_RESPONSE_CODE_DOWNLOADING = 2;//下载中

        String INTENT_ID = "INTENT_ID";
        String CODE = "CODE";
        /**
         * 操作成功
         */
        String success = "1";
        /**
         * 登录会话超时
         */
        String login_timeout = "8";
        /**
         * 前置接口响应超时
         */
        String timeout = "N001";
        /**
         * 现场作业终端网络信号异常
         */
        String neterror = "N002";
        /**
         * 接口信息返回为空
         */
        String none = "N003";
        /**
         * 接口返回解析错误
         */
        String encrypterror = "N004";
        /**
         * 接口返回产生异常
         */
        String error = "N005";
        /**
         * 接口返回数据状态码不为成功标志
         */
        String return_code_error = "N006";

        /**
         * 存储数据库时为空
         */
        String save_error = "N007";
        /**
         * 未知错误
         */
        String other_error = "N999";
    }
}
